package com.song.pojo;

import java.sql.Date;

public class UploadFile {
    private Integer id;
    private Long size;
    private String type;
    private String oldName;
    private Date time;
    private String url;
    private String uuid;

    public UploadFile(Long size, String type, String oldName, Date time, String url, String uuid) {
        this.size = size;
        this.type = type;
        this.oldName = oldName;
        this.time = time;
        this.url = url;
        this.uuid = uuid;
    }

    public UploadFile(Integer id, Long size, String type, String oldName, Date time, String url, String uuid) {
        this.id = id;
        this.size = size;
        this.type = type;
        this.oldName = oldName;
        this.time = time;
        this.url = url;
        this.uuid = uuid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date date) {
        this.time = date;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getOldName() {
        return oldName;
    }

    public void setOldName(String oldName) {
        this.oldName = oldName;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Override
    public String toString() {
        return "UploadFile{" +
                "id=" + id +
                ", size=" + size +
                ", type='" + type + '\'' +
                ", oldName='" + oldName + '\'' +
                ", time=" + time +
                ", url='" + url + '\'' +
                ", uuid='" + uuid + '\'' +
                '}';
    }
}
